package com.newasia.shopping.dal.entitys.returnValue;

import lombok.Data;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

@Data
public class SpecOption implements Serializable{

    private String spec_name;

    private String spec_value;

    public List<String> getSpecValues(){
        String[] list = spec_value.split(",");
        List<String> specList = new ArrayList<String>();
        for (int i = 0; i < list.length; i++) {
            specList.add(list[i]);
        }
        return specList;
    }
}
